const express = require("express");
const bodyParser = require("body-parser");
const loginRegister = require('./routes/loginRegister');

const app = express();
app.use(
    bodyParser.urlencoded({
        extended: true
    })
);
app.use(loginRegister);

app.listen(8080, err => {
    if (!err) console.log("server启动");
    else console.log(err);
});